KERNELDIR:=/home/embedfire/ebf-image-builder/ebf-buster-linux
CURRDIR:=$(shell pwd)

ARCH=arm
CROSS_COMPILE=arm-linux-gnueabihf-
export ARCH CROSS_COMPILE
obj-m :=chedev.o

build: kernel_modules

kernel_modules:
	$(MAKE) -C $(KERNELDIR) M=$(CURRDIR) modules
clean:
	$(MAKE) -C $(KERNELDIR) M=$(CURRDIR) clean